package com.bookstore.dao.impl;

import com.bookstore.bean.Fruit;
import com.bookstore.dao.BaseDao;
import com.bookstore.dao.FruitDao;

import java.util.List;

public class FruitDaoImpl extends BaseDao<Fruit> implements FruitDao {

    @Override
    public List<Fruit> getFruitList() {
        String sql="select fid,fname,price,fcount,remark from t_fruit";
        List<Fruit> list = this.queryList(sql);
        return list;
    }

    @Override
    public boolean addFruit(Fruit fruit) {
        return false;
    }

    @Override
    public boolean updateFruit(Fruit fruit) {
        return false;
    }

    @Override
    public boolean delFruit(String fname) {
        return false;
    }

    @Override
    public Fruit getFruitByName(String name) {
        return null;
    }
}
